package com.mspbots.api.client;

import org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * describe：
 *
 * @author: panchaoyue
 * @create-date: 2019-11-29
 */
@Service
public class TeamsClient extends AbstractClient {

    public TeamsClient(WebClient.Builder builder,
                       LoadBalancerExchangeFilterFunction lbFunction) {
        super(builder.baseUrl("http://mspbots-teams")
                .filter(lbFunction)
                .build());
    }
}
